import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;

/**
 * Author :  Rocky
 * Date : 31/05/2017 11:10
 * Description :
 * Test :
 */
public class ZipTest {
    public static void main(String[] args) throws IOException {





        ByteArrayOutputStream out = new ByteArrayOutputStream();
        ZipOutputStream zout = new ZipOutputStream(out);
        zout.putNextEntry(new ZipEntry("0"));
        zout.write(new byte[100]);
        zout.closeEntry();
        System.out.println(out.toByteArray().length);
    }
}
